<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='地址'}}
{{assign var="app" value='address'}}
{{assign var="act" value=''}}
<title>{{$title}} - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
</head>
<body>
	{{include file="include/sidebar.html"}}
	
	<div class="body_right">
	<div id="content">
	
		<!--内容 S-->
		<form class="ajaxSubmit" action="index.php?app={{$app}}&act=save" name="form1" method="post">
		<input type="hidden" name="id" value="{{$result[$smarty.get.table|cat:'_id']}}"/>
		<input type="hidden" name="table" value="{{$smarty.get.table}}"/>
		<table class="table table-bordered modify">
		  <tbody>
			<tr class="thead">
			  <td colspan="7">
				　◆ {{$title}}管理 －> 编辑/修改
			  </td>
			</tr>
			{{if $smarty.get.table=='province'}}
				<tr>
				  <td>省：</td>
				  <td>
					<input class="input-xlarge" type="text" name="province_name" value="{{$result.province_name}}"> <span class="red">*</span>
				  </td>
				</tr>
				<tr>
				  <td>是否发布：</td>
				  <td>
					{{html_radios name=publish options=$publish checked=$result.publish|default:1}}
				  </td>
				</tr>
			{{elseif $smarty.get.table=='city'}}
				<tr>
				  <td>城市：</td>
				  <td>
				  	{{if $smarty.get.parent_id>0}}<input type="hidden" name="province_id" value="{{$smarty.get.parent_id}}"/>{{/if}}
					<input class="input-xlarge" type="text" name="city_name" value="{{$result.city_name}}"> <span class="red">*</span>
				  </td>
				</tr>
				<tr>
				  <td>是否发布：</td>
				  <td>
					{{html_radios name=publish options=$publish checked=$result.publish|default:1}}
				  </td>
				</tr>
				<tr>
				  <td>是否推荐：</td>
				  <td>
					{{html_radios name=hot_city options=$publish checked=$result.hot_city|default:0}}
				  </td>
				</tr>
			{{elseif $smarty.get.table=='area'}}
				<tr>
				  <td>区域：</td>
				  <td>
				  	{{if $smarty.get.parent_id>0}}<input type="hidden" name="city_id" value="{{$smarty.get.parent_id}}"/>{{/if}}
					<input class="input-xlarge" type="text" name="area_name" value="{{$result.area_name}}"> <span class="red">*</span>
				  </td>
				</tr>
				<tr>
				  <td>是否发布：</td>
				  <td>
					{{html_radios name=publish options=$publish checked=$result.publish|default:1}}
				  </td>
				</tr>
			{{elseif $smarty.get.table=='street'}}
				<tr>
				  <td>街镇：</td>
				  <td>
				  	{{if $smarty.get.parent_id>0}}<input type="hidden" name="area_id" value="{{$smarty.get.parent_id}}"/>{{/if}}
					<input class="input-xlarge" type="text" name="street_name" value="{{$result.street_name}}"> <span class="red">*</span>
				  </td>
				</tr>
				<tr>
				  <td>是否发布：</td>
				  <td>
					{{html_radios name=publish options=$publish checked=$result.publish|default:0}}
				  </td>
				</tr>
			{{/if}}
		  </tbody>
		 </table>
		 <div class="bottom_button">
		 	<button type="submit" class="btn btn-info"><i class="icon-ok icon-white"></i>确认</button>
		 </div>
		</form>
		<!--内容 E-->

</div>
</div>

</body>
</html>